]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
NetworkMenu/NMDeviceWireless: use the device state instead of active connection state
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 2 Oct 2013 14:53:38 +0000 (16:53 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 3 Oct 2013 14:01:27 +0000 (16:01 +0200)
Since we connect to signals for that, we need to sync on that, or
we can miss a notification.

https://bugzilla.gnome.org/show_bug.cgi?id=709043

js/ui/status/network.js

index 2a830c81b9b39911d21c7edb4b80162859b3eb49..c78c6696ec309c2807fd84e0768ec35104f4eb9a 100644 (file)
@@ -1064,7 +1064,8 @@ const NMDeviceWireless = new Lang.Class({
     },
 
     getIndicatorIcon: function() {
-        if (this._device.active_connection.state == NetworkManager.ActiveConnectionState.ACTIVATING)
+        if (this._device.state >= NetworkManager.DeviceState.PREPARE &&
+            this._device.state < NetworkManager.DeviceState.ACTIVATED)
             return 'network-wireless-acquiring-symbolic';
 
         let ap = this._device.active_access_point;